<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css"/>
    <link rel="stylesheet" href="/css/Coupons/Listofcoupons.css"/>
</head>
<body>
<div class="layui-container" id="div_div_id">
    <!--优惠券列表部分-->
    <div class="layui-row" id="List_Header">
        <div>
            <span id="color_id">▉</span>
            <span id="List_Header_span">优惠券列表</span>
        </div>
        <div id="btn_id">
            <button type="button" class="layui-btn layui-btn-sm btn_class" id="refresh" onclick="refresh()">
                <i class="layui-icon layui-icon-refresh"></i> &nbsp;刷新
            </button>
            <button type="button" class="layui-btn layui-btn-sm btn_class" onclick="go()" id="go_id">
                <i class="layui-icon layui-icon-left"></i> 返回
            </button>
        </div>
    </div>
    <!--筛选查询-->
    <div class="layui-row" id="List_query">
        <div class="layui-col-xs7 layui-col-sm8 layui-col-md9 layui-col-lg10">
            <i class="layui-icon layui-icon-search"></i><span id="List_query_span">筛选查询</span>
        </div>
        <div  id="btn_id2">
            <button type="button" class="layui-btn layui-btn-sm btn_class" id="retrieve" onclick="retrieve()">
                高级检索
            </button>
            <button type="button" class="layui-btn layui-btn-sm btn_class" id="selProduct" onclick="selCoupon()">
                查看
            </button>
        </div>
    </div>
    <div  id="List_query2">
        <form class="layui-form" action="" id="layui-form">
            <div class="layui-form-item layui-row" id="layui-form-item" >
                <div class="layui-inline inline layui-col-xs4 layui-col-sm3 layui-col-md3 layui-col-lg3">
                    <label class="layui-form-label List_query2_label label">优惠券名称：</label>
                    <div class="layui-input-block" style="margin-left: 120px">
                        <input type="text" name="couponName" class="layui-input" placeholder="优惠券名称" id="couponName"/>
                    </div>
                </div>
                <div class="layui-inline  layui-col-xs4 layui-col-sm5 layui-col-md5 layui-col-lg5 inline1">
                    <label class="layui-form-label List_query2_label">发放方式：</label>
                    <div class="layui-input-block">
                        <select  id="mode">
                            <option value="0">请选择发放方式</option>
                            <option value="2">自动发放</option>
                            <option value="3">活动领取</option>
                            <option value="4">人工发放</option>
                            <option value="5">无限制</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline  layui-col-xs4 layui-col-sm4 layui-col-md4 layui-col-lg4 inline2">
                    <label class="layui-form-label List_query2_label label" style="width:120px;">优惠券状态：</label>
                    <div class="layui-input-block" style="margin-left: 150px">
                        <select  id="online">
                            <option value="0">请选择优惠券状态</option>
                            <option value="2">上线</option>
                            <option value="3">不上线</option>
                        </select>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <!--数据列表-->
    <div class="layui-row" id="List_querys">
        <div class="layui-col-xs9 layui-col-sm9 layui-col-md10 layui-col-lg11">
            <i class="layui-icon layui-icon-form"></i>
            <span id="List_query_spans">数据列表</span>
        </div>
        <div id="addCoupon_id">
            <button type="button" class="layui-btn layui-btn-sm btn_class" onclick="addCoupon()">
                添加优惠券
            </button>
        </div>
    </div>
    <div id="div_div_id_s">
        <table id="table_id" lay-filter="table_id"></table>
    </div>
    <input type="text" id="couponId" style="display: none"/>
    <!-- 开始时间赋值-->
    <input type="hidden" id="startDate">
    <!-- 结束时间赋值-->
    <input type="hidden" id="endDate">
</div>
<script src="/js/Coupons/Listofcoupons.js"></script>
</body>
</html>